package com.kx.core.dawn.dbs.entity;

import com.genchance.core.dawn.entity.BaseBean;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 文件名：GameServerEntity.java
 * <p>
 * 功能：GameServerEntity文件
 * <p>
 * 作者：Builded by DawnBuildTools.
 * <p>
 * 版权：(c)栗子游戏
 */
public class GameServerEntity extends BaseBean implements Cloneable {


    private static final long serialVersionUID = 1L;

    /**
     * 服务器serverId
     */
    private String serverId;

    /**
     * 服务器ip
     */
    private String ip;
    /**
     * 服务器端口
     */
    private String gamePort;
    /**
     * 给gate开放端口
     */
    private String gatePort;

    /**
     * 连接服务器ip
     */
    private String connectIp;
    /**
     * 连接服务器端口
     */
    private String connectPort;

    /**
     * 服务器状态
     */
    private String state;
    /**
     * 服务器类型
     */
    private String type;

    /**
     * 服务器最后汇报时间
     */
    private String time;

    /**
     * 服务器登录人数 5分钟同步数据
     */
    private int loginNum;

    /**
     * 服务器创建人数
     */
    private int createNum;

    public String getConnectIp() {
        return connectIp;
    }

    public void setConnectIp(String connectIp) {
        this.connectIp = connectIp;
    }

    public String getConnectPort() {
        return connectPort;
    }

    public void setConnectPort(String connectPort) {
        this.connectPort = connectPort;
    }

    public int getCreateNum() {
        return createNum;
    }

    public void setCreateNum(int createNum) {
        this.createNum = createNum;
    }

    public int getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(int loginNum) {
        this.loginNum = loginNum;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getGamePort() {
        return gamePort;
    }

    public void setGamePort(String gamePort) {
        this.gamePort = gamePort;
    }

    public String getGatePort() {
        return gatePort;
    }

    public void setGatePort(String gatePort) {
        this.gatePort = gatePort;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public GameServerEntity clone() throws CloneNotSupportedException {

        return (GameServerEntity) super.clone();
    }

    @Override
    @SuppressWarnings("unchecked")
    public <T extends BaseBean> T parseEntity(ResultSet rest)
            throws SQLException {
        GameServerEntity entity = new GameServerEntity();
        return (T) entity;
    }
}